package com.assignment.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;

public class TutorialScreen extends JFrame {

	private JPanel contentPane;

	
	public TutorialScreen() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 556, 378);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		setVisible(true);
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.NORTH);
		
		JLabel lblTutorial = new JLabel("Tutorial");
		lblTutorial.setFont(new Font("Tahoma", Font.BOLD, 22));
		panel.add(lblTutorial);
		
String tut="<html><ol><li>"+
"Check one or more of the checkboxes marked \"Supplier\", \"Fireplace\", or \"Stove\""+
"</li><br /><li>"+
"Press the \"Search\" Button to search the database for objects. The results will be shown in the list area."+
"</li><br /><li>"+
"Select a result from the list area, then press \"View\" to view the objects details, \"Edit\" to edit the object, or \"Delete\" to delete the object."+
"</li><br /><li>"+
"Press \"New Item\" or \"New Supplier\" to add a new entry to the database."+
"</li></ol></html>";
		JLabel lblNewLabel = new JLabel(tut);
		lblNewLabel.setOpaque(true);
		lblNewLabel.setBackground(Color.WHITE);
		contentPane.add(lblNewLabel, BorderLayout.CENTER);
	}

}
